package com.exception;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class ExceptionClass3 {
	public static void main(String[] args) /*throws IOException*/ {
		BufferedReader keyin = new BufferedReader(
				new InputStreamReader(System.in));
		String c1 = "IOException";
		int i = 0;
		String[] e = new String[10];
		while (i < 10) {
			try {
				c1 = keyin.readLine();
			} catch (IOException e2) {
				e2.printStackTrace();
			}
			e[i] = c1;
			i++;
		}
		for(String e1:e){
			System.out.println(e1);
		}
	}
}
